#include "rules.h"
#include "utils.h"

char rule2(bool type, unsigned int *seed) {
    if (type == false) {
        return rule1(type)[rand_r(seed) % 15];
    } else {
        return "12345679"[rand_r(seed) % 7];
    }
}